package Demo;

public class Demo2 {
    public static void main(String[] args) {
        Thread t1 = new Thread(() -> {
            System.out.println("t1");
        });
        t1.setPriority(2);
        Thread t2 = new Thread(() -> {
            System.out.println("t2");
        });
        t2.setPriority(5);
        t1.start();
        t2.start();
    }
}
